/* ============================================================
   css/galerie-photos.css — PAGE PUBLIQUE GALERIE PHOTOS
   Charte : Bleu marine #1a3a5c / Or #c9a84c
   Polices : Playfair Display + Crimson Pro + Montserrat
   ============================================================ */


/* ===================================================
   1. NAVBAR
   =================================================== */

.gph-navbar {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 30px rgba(26,53,103,0.1);
  padding: 14px 0;
  transition: all 0.35s ease;
}

.gph-nav-conteneur {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gph-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.gph-logo-img   { height: 44px; width: auto; border-radius: 4px; }

.gph-logo-texte {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--bleu-marine);
  white-space: nowrap;
}

.gph-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0; padding: 0;
}

.gph-item { position: relative; }

.gph-lien {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  color: var(--bleu-marine);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 4px;
}

.gph-lien:hover { background: rgba(201,168,76,0.12); color: var(--or); }

.gph-actif > .gph-lien,
.gph-actif > .gph-toggle {
  color: var(--or);
  font-weight: 600;
  border-bottom: 2px solid var(--or);
}

.gph-actif-lien { color: var(--or) !important; font-weight: 600 !important; }

.gph-fleche {
  width: 11px; height: 11px;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.gph-avec-dropdown:hover .gph-fleche { transform: rotate(180deg); }

.gph-contact { border: 2px solid var(--bleu-marine); border-radius: 50px; padding: 6px 16px; }
.gph-contact:hover { background: var(--bleu-marine); color: var(--blanc) !important; }

.gph-dropdown {
  position: absolute;
  top: calc(100% + 2px); left: 0;
  background: var(--blanc);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(26,53,103,0.2);
  list-style: none;
  min-width: 260px;
  padding: 8px 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: all 0.3s ease;
  border-top: 3px solid var(--or);
  z-index: 999;
}

.gph-avec-dropdown:hover .gph-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.gph-sous-lien {
  display: block;
  padding: 10px 20px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  color: var(--noir-doux);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: all 0.2s ease;
}

.gph-sous-lien:hover {
  background: var(--gris-clair);
  color: var(--bleu-marine);
  border-left-color: var(--or);
  padding-left: 26px;
}

.gph-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
  z-index: 1001;
}

.gph-barre {
  display: block;
  width: 24px; height: 2px;
  background: var(--bleu-marine);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.gph-croix {
  display: none;
  position: absolute;
  top: 18px; right: 18px;
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.4);
  color: var(--blanc);
  font-size: 1.3rem;
  width: 46px; height: 46px;
  border-radius: 50%;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 1002;
  line-height: 1;
}

.gph-croix:hover { background: var(--or); border-color: var(--or); }


/* ===================================================
   2. BANNIÈRE
   =================================================== */

.gph-banniere {
  background: linear-gradient(135deg, var(--bleu-fonce) 0%, var(--bleu-marine) 55%, #1e4a8a 100%);
  padding: 140px 0 60px;
  position: relative;
  overflow: hidden;
}

.gph-cercle-deco {
  position: absolute;
  top: -120px; right: -80px;
  width: 500px; height: 500px;
  border-radius: 50%;
  border: 2px solid rgba(201,168,76,0.1);
  pointer-events: none;
}

.gph-cercle-deco-2 {
  position: absolute;
  bottom: -60px; left: -60px;
  width: 300px; height: 300px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.05);
  pointer-events: none;
}

.gph-breadcrumb { margin-bottom: 28px; }

.gph-bc-liste {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  list-style: none;
  padding: 0; margin: 0;
}

.gph-bc-item { display: flex; align-items: center; }

.gph-bc-lien {
  display: flex;
  align-items: center;
  gap: 5px;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 20px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.gph-bc-lien:hover {
  color: var(--blanc);
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
}

.gph-bc-maison { width: 13px; height: 13px; flex-shrink: 0; }

.gph-bc-sep {
  color: rgba(255,255,255,0.35);
  font-size: 0.9rem;
  padding: 0 2px;
  user-select: none;
}

.gph-bc-actuel {
  color: var(--or);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  background: rgba(201,168,76,0.15);
  border-radius: 20px;
  border: 1px solid rgba(201,168,76,0.3);
}

.gph-badge-categorie {
  display: inline-block;
  background: rgba(201,168,76,0.2);
  color: var(--or);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 50px;
  border: 1px solid rgba(201,168,76,0.4);
  margin-bottom: 16px;
}

.gph-titre-banniere {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  color: var(--blanc);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 16px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.gph-sous-titre {
  font-family: 'Crimson Pro', serif;
  font-size: 1.15rem;
  font-style: italic;
  color: rgba(255,255,255,0.7);
  margin: 0 0 28px 0;
  max-width: 560px;
}

/* Compteur dynamique */
.gph-compteur-zone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 10px 20px;
  border-radius: 50px;
  backdrop-filter: blur(8px);
}

.gph-compteur-nb {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--or);
  line-height: 1;
}

.gph-compteur-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.75);
  font-weight: 500;
}


/* ===================================================
   3. BARRE DE FILTRES
   =================================================== */

.gph-filtres-barre {
  background: var(--blanc);
  border-bottom: 2px solid rgba(26,53,103,0.08);
  position: sticky;
  top: 72px;
  z-index: 100;
  box-shadow: 0 4px 16px rgba(26,53,103,0.07);
}

.gph-filtres {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.gph-filtres::-webkit-scrollbar { display: none; }

.gph-filtre-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 50px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
  border: 2px solid transparent;
  background: var(--gris-clair);
  color: var(--gris-texte);
}

.gph-filtre-btn:hover {
  background: rgba(26,53,103,0.08);
  color: var(--bleu-marine);
  border-color: rgba(26,53,103,0.15);
}

.gph-filtre-actif {
  background: var(--bleu-marine);
  color: var(--blanc);
  border-color: var(--bleu-marine);
  box-shadow: 0 4px 14px rgba(26,53,103,0.25);
}

.gph-filtre-actif:hover {
  background: var(--bleu-marine);
  color: var(--blanc);
}


/* ===================================================
   4. CORPS PRINCIPAL
   =================================================== */

.gph-main {
  background: var(--blanc-casse);
  padding: 60px 0 100px;
  min-height: 60vh;
}


/* ===================================================
   5. CHARGEMENT & VIDE
   =================================================== */

.gph-chargement {
  text-align: center;
  padding: 80px 20px;
}

/* Animation 3 points */
.gph-chargement-anim {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}

.gph-chargement-anim span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--or);
  animation: gph-bounce 1.2s ease-in-out infinite;
}

.gph-chargement-anim span:nth-child(2) { animation-delay: 0.2s; }
.gph-chargement-anim span:nth-child(3) { animation-delay: 0.4s; }

@keyframes gph-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-12px); opacity: 1; }
}

.gph-chargement p {
  font-family: 'Crimson Pro', serif;
  font-size: 1rem;
  font-style: italic;
  color: var(--gris-texte);
}

.gph-vide {
  text-align: center;
  padding: 80px 24px;
  max-width: 500px;
  margin: 0 auto;
}

.gph-vide-icone {
  width: 90px; height: 90px;
  background: linear-gradient(135deg, rgba(26,53,103,0.06), rgba(201,168,76,0.08));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: rgba(26,53,103,0.3);
}

.gph-vide-titre {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--bleu-marine);
  margin-bottom: 12px;
}

.gph-vide-sous {
  font-family: 'Crimson Pro', serif;
  font-size: 1rem;
  font-style: italic;
  color: var(--gris-texte);
}


/* ===================================================
   6. GRILLE PHOTOS — MASONRY-LIKE
   =================================================== */

.gph-grille {
  columns: 4;
  column-gap: 16px;
}

/* Chaque photo = une colonne */
.gph-photo-item {
  break-inside: avoid;
  margin-bottom: 16px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: rgba(26,53,103,0.05);
}

.gph-photo-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 40%,
    rgba(26,53,103,0.75) 100%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
}

.gph-photo-item:hover::after { opacity: 1; }

/* Image */
.gph-photo-img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.gph-photo-item:hover .gph-photo-img {
  transform: scale(1.06);
}

/* Infos au survol */
.gph-photo-infos {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 20px 16px 14px;
  z-index: 2;
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.35s ease;
}

.gph-photo-item:hover .gph-photo-infos {
  opacity: 1;
  transform: translateY(0);
}

.gph-photo-titre {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--blanc);
  margin: 0 0 4px 0;
  line-height: 1.3;
}

.gph-photo-cat {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--or);
  background: rgba(201,168,76,0.2);
  border: 1px solid rgba(201,168,76,0.4);
  padding: 2px 8px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Icône loupe au centre au survol */
.gph-photo-loupe {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.6);
  width: 48px; height: 48px;
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blanc);
  z-index: 3;
  opacity: 0;
  transition: all 0.35s ease;
  backdrop-filter: blur(4px);
}

.gph-photo-item:hover .gph-photo-loupe {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Animation apparition progressive */
.gph-photo-item {
  opacity: 0;
  transform: translateY(20px);
  animation: gph-appear 0.5s ease forwards;
}

@keyframes gph-appear {
  to { opacity: 1; transform: translateY(0); }
}


/* ===================================================
   7. PAGINATION
   =================================================== */

.gph-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 48px;
}

.gph-page-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--blanc);
  border: 2px solid rgba(26,53,103,0.15);
  border-radius: 50px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--bleu-marine);
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 2px 10px rgba(26,53,103,0.06);
}

.gph-page-btn:hover:not(:disabled) {
  background: var(--bleu-marine);
  color: var(--blanc);
  border-color: var(--bleu-marine);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(26,53,103,0.2);
}

.gph-page-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.gph-page-info {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82rem;
  color: var(--gris-texte);
  font-weight: 500;
}


/* ===================================================
   8. LIGHTBOX
   =================================================== */

.gph-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5,10,20,0.96);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.gph-lightbox.ouvert { display: flex; }

/* Bouton fermer */
.gph-lb-fermer {
  position: absolute;
  top: 20px; right: 20px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 2px solid rgba(255,255,255,0.25);
  color: var(--blanc);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 2;
}

.gph-lb-fermer:hover { background: rgba(239,68,68,0.5); border-color: #ef4444; }

/* Navigation */
.gph-lb-nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 2px solid rgba(255,255,255,0.2);
  color: var(--blanc);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  z-index: 2;
}

.gph-lb-nav:hover {
  background: rgba(201,168,76,0.25);
  border-color: var(--or);
  color: var(--or);
}

.gph-lb-nav:disabled { opacity: 0.2; cursor: not-allowed; }

.gph-lb-prev { left: 20px; }
.gph-lb-next { right: 20px; }

/* Contenu */
.gph-lb-contenu {
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.gph-lb-img {
  max-width: 88vw;
  max-height: 78vh;
  border-radius: 10px;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  transition: opacity 0.25s ease;
}

.gph-lb-infos { text-align: center; }

.gph-lb-titre {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--blanc);
  margin: 0 0 4px 0;
}

.gph-lb-desc {
  font-family: 'Crimson Pro', serif;
  font-size: 0.9rem;
  font-style: italic;
  color: rgba(255,255,255,0.6);
  margin: 0 0 6px 0;
}

.gph-lb-count {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  color: rgba(201,168,76,0.8);
  margin: 0;
  letter-spacing: 1px;
}


/* ===================================================
   9. RESPONSIVE TABLETTE
   =================================================== */

@media (max-width: 1024px) {
  .gph-grille { columns: 3; }
}


/* ===================================================
   10. RESPONSIVE MOBILE
   =================================================== */

@media (max-width: 768px) {

  .gph-burger { display: flex; }
  .gph-croix  { display: flex; }

  .gph-menu {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%; height: 100%;
    background: var(--bleu-marine);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    z-index: 1000;
    overflow-y: auto;
    padding: 80px 20px 40px;
    list-style: none;
  }

  .gph-menu.gph-ouvert { transform: translateX(0); }

  .gph-item > .gph-lien,
  .gph-item > .gph-toggle {
    font-size: 1.1rem;
    color: var(--blanc) !important;
    padding: 12px 24px;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    border-radius: 0;
    justify-content: center;
  }

  .gph-item > .gph-lien:hover,
  .gph-item > .gph-toggle:hover {
    background: rgba(255,255,255,0.08);
    color: var(--or) !important;
  }

  .gph-dropdown {
    position: static;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    background: rgba(255,255,255,0.08);
    box-shadow: none;
    border-top: none;
    border-left: 3px solid var(--or);
    margin-left: 20px;
    display: none;
    border-radius: 8px;
    margin-top: 4px;
    min-width: auto;
    padding: 6px 0;
  }

  .gph-avec-dropdown.gph-ouvert .gph-dropdown { display: block; }

  .gph-sous-lien {
    color: rgba(255,255,255,0.82) !important;
    font-size: 0.88rem;
    padding: 10px 16px;
    border-left: none;
    text-align: left;
  }

  .gph-sous-lien:hover { color: var(--or) !important; padding-left: 22px; }
  .gph-contact { border-color: rgba(255,255,255,0.4) !important; }

  .gph-banniere { padding: 120px 0 48px; }
  .gph-titre-banniere { font-size: 2rem; }

  .gph-grille { columns: 2; }

  .gph-lb-prev { left: 8px; }
  .gph-lb-next { right: 8px; }
  .gph-lb-nav { width: 40px; height: 40px; }
  .gph-lb-img { max-height: 70vh; }

  .gph-filtres { gap: 6px; }
  .gph-filtre-btn { padding: 7px 14px; font-size: 0.72rem; }
}

@media (max-width: 480px) {
  .gph-grille { columns: 1; }
}